#!/bin/sh

APP=$1

if [ "x$APP" = "x" ] ; then
	ls $ROOTDIR/etc/sites/enabled.d/ | sed 's/\.conf//g'
else
	if [ ! -h $ROOTDIR/etc/sites/enabled.d/${APP}.conf ] ; then
		echo "{$APP} is not enabled."
	else
		rm $ROOTDIR/etc/sites/enabled.d/${APP}.conf
	fi
fi